﻿
namespace GraphicsFramework.Entity
{
    public class Point2I
    {
        private int x;
        private int y;

        /// <summary>
        /// Contains class constructors
        /// </summary>
        #region "Constructors"

            public Point2I()
            {
                x = 0;
                y = 0;
            }

            public Point2I(int x, int y)
            {
                this.x = x;
                this.y = y;
            }

        #endregion

        /// <summary>
        /// Contains methods and functions
        /// </summary>
        #region "Methods & Functions"

            public bool IsEqual(int x, int y)
            {
                if ((this.x == x) && (this.y == y))
                {
                    return true;
                }

                return false;
            }

            public bool IsEqual(Point2I point)
            {
                if ((this.x == point.x) && (this.y == point.y))
                {
                    return true;
                }

                return false;
            }

        #endregion

        /// <summary>
        /// Contains class properties
        /// </summary>
        #region "Properties"

            public int X
            {
                get { return x; }
                set { x = value; }
            }

            public int Y
            {
                get { return y; }
                set { y = value; }
            }

        #endregion

    }
}
